package com.song.weektest.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.song.weektest.domain.WUser;
import com.song.weektest.service.WUserService;
import com.song.weektest.mapper.WUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Administrator
* @description 针对表【w_user】的数据库操作Service实现
* @createDate 2024-05-29 15:48:07
*/
@Service
public class WUserServiceImpl extends ServiceImpl<WUserMapper, WUser>
    implements WUserService{

    @Resource
    private WUserMapper wUserMapper;

    @Override
    public IPage<WUser> pageList(Integer offset, Integer pageSize, WUser wUser) {
        Page<WUser> page = new Page<>(offset, pageSize);
        return this.wUserMapper.selectPage(page,  wUser);
    }
}




